
import java.util.Scanner;

public class DAY0511 {
    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();//表示有多少个元素
        int[] nums = new int[n];//表示数组中的元素值
        //接收数组中的元素
        for(int i = 0; i < n; i++){
            nums[i] = sc.nextInt();
        }
        //记录F(i)递归状态中最大的值
        int Fmax = nums[0] ;
        //记录F(i)的最大值
        int F = nums[0];
        for (int i = 1; i <n; i++) {
            Fmax = Math.max(Fmax+nums[i],nums[i]);
            if(Fmax>F){
                F = Fmax;
            }
        }
        System.out.println(F);
    }

    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {// 注意，如果输入是多个测试用例，请通过while循环处理多个测试用例
            String a = in.nextLine();
            String b = in.nextLine();
            number(a,b);
        }
    }
    private static void number(String str1,String str2){
        // 计算将str2拼接到str1中有多少个回文串
        int count =0;//用来统计回文个数
        int len = str1.length();
        for (int i = 0; i < str1.length()+1; i++) {
            //分割字符串str1和str2
            String a = str1.substring(0,i);//前一段
            String b = str1.substring(i,len);//后一段

            //开始拼接字符串
            StringBuffer stringBuffer = new StringBuffer();
            stringBuffer.append(a);
            stringBuffer.append(str2);
            stringBuffer.append(b);


            //开始判断是否为回文串
            if(PalindromeString(stringBuffer.toString())){
                count++;
            }
        }
        System.out.println(count);
    }
    private static boolean PalindromeString(String string){
        char[] chars = string.toCharArray();
        int i = 0;//第一个数
        int j = chars.length-1;//最后一个数
        while (i<j){
            if(chars[i] == chars[j]){
                i++;
                j--;
            }else {
                return false;
            }
        }
        return true;
    }

    public static void main(String[] args) {
        StringBuffer a =new StringBuffer("A");
        StringBuffer b =new StringBuffer("B");

        nums(a,b);
        System.out.println(a+"."+b);
    }

    private static void nums(StringBuffer a, StringBuffer b) {
        a.append(b);
        b=a;
    }


}
